import java.util.Scanner;

public class Computer {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        double amount = 0;
        double price = 0;
        System.out.println("输入电量：");
        amount = reader.nextDouble();
        if(amount<=90&&amount>=1){
            price=0.6*amount;
        } else if (amount<=150&&amount>=91) {
            price=1.1*(amount-90)+0.6*90;
        }else if (amount>150) {
            price=1.5*(amount-150)+0.6*90+1.1*60;
        }else {
            System.out.println("输入电量；"+amount+"不合理");
        }
        System.out.printf("电费：%5.2f",price);
    }
}
